/* spawn扩展 */
interface StructureSpawn{
    // 孵化
    hatchCreep(role:string,body:BodyPartConstant[],mem?:any):boolean
}

interface StructureLink{
    ManageMisson():void
}

interface StructureTerminal{
    ManageMisson():void
}

interface RoomMemory{
    market:MarketData
    factory:any
    marketID:{[mType:string]:{[rType:string]:string}}    // 存储的marketID信息
}
// deal order
interface MarketData{
    [kind:string]:LittleMarketData[]
}
interface LittleMarketData{
    rType:ResourceConstant
    num:number
    price?:number
    unit?:number
    id?:string      // 交易ID
    continue?:boolean   // 卖完了一批次是否填充
}

interface StructureFactory{
    ManageMisson():void
}